package com.manage.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

@ApiModel(value = "地址信息对象", description = "这是地址对象信息")
@Table(name = "addresses")
public class Addresses {

    @ApiModelProperty(hidden = true)
    @Id
    @Column(name = "address_id")
    private String addressId;

    @ApiModelProperty(value = "用户id", name = "userId", required = true)
    @Column(name = "user_id")
    private String userId;

    @ApiModelProperty(value = "地址内容", name = "addressContent", required = true)
    @Column(name = "address_content")
    private String addressContent;

    @ApiModelProperty(value = "联系人电话", name = "addressPhone", required = true)
    @Column(name = "address_phone")
    private String addressPhone;

    @ApiModelProperty(value = "联系人姓名", name = "addressName", required = true)
    @Column(name = "address_name")
    private String addressName;

    @ApiModelProperty(hidden = true)
    @Column(name = "create_time")
    private String createTime;

    /**
     * 获取地址id
     *
     * @return address_id - 地址id
     */
    public String getAddressId() {
        return addressId;
    }

    /**
     * 设置地址id
     *
     * @param addressId 地址id
     */
    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取地址内容
     *
     * @return address_content - 地址内容
     */
    public String getAddressContent() {
        return addressContent;
    }

    /**
     * 设置地址内容
     *
     * @param addressContent 地址内容
     */
    public void setAddressContent(String addressContent) {
        this.addressContent = addressContent;
    }

    public String getAddressPhone() {
        return addressPhone;
    }

    public void setAddressPhone(String addressPhone) {
        this.addressPhone = addressPhone;
    }

    public String getAddressName() {
        return addressName;
    }

    public void setAddressName(String addressName) {
        this.addressName = addressName;
    }

    /**
     * 获取创建时间
     *
     * @return create_time - 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}